<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>出租车管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin/project/advert_list.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/driver/info.js"></script>
</head>
<body>

<form class="layui-form" id="form" action="">
    <input type="hidden" name="id" id="id" th:value="${user.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="userName" id="userName" lay-verify="required" th:value="${user.userName}" autocomplete="off" placeholder="请输入用户名" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="trueName" id="trueName" lay-verify="required"  th:value="${user.trueName}" autocomplete="off" placeholder="请输入真名" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item"  id="driverNoDiv">
        <label class="layui-form-label">驾驶证号</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="driverNo" id="driverNo" lay-verify="" th:value="${user.driverNo}"   placeholder="请输入驾驶证号" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item"  id="drvierAgeDiv">
        <label class="layui-form-label">驾龄</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="drvierAge" id="drvierAge" lay-verify="number"  th:value="${user.drvierAge}"   placeholder="请输入驾龄" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item"  id="driverTimeDiv">
        <label class="layui-form-label">发证日期</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="driverTime" id="driverTime"   lay-verify="date" th:value="${user.showDriverTime}" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份证</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="idCard" id="idCard"  lay-verify="required" th:value="${user.idCard}" autocomplete="off" placeholder="请输入身份证号" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block layui-col-md5">
            <input type="text" name="password" id="password" lay-verify="required" th:value="${user.password}" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block layui-col-md5">
                <input type="tel" name="phone" id="phone" lay-verify="required|phone" th:value="${user.phone}" placeholder="请输入手机号" autocomplete="off" class="layui-input">
            </div>
    </div>

    <div class="layui-form-item layui-col-md-offset1" style="margin-bottom: 25px;">
        <div class="layui-btn" id="submit" lay-filter="form" lay-submit>修改</div>
    </div>
</form>
</body>
</html>